function [] = save_BS(fname,bsi,s_now_batch,v,v_pd,v_pi,v_nd,v_ni,in_Ghat,g_hat,scaled_ATT_bs,ATE_bs,W_bs_Ghat,bsperm,dt) 
% This function saves bootstrap results to a designated folder with a
% specific file name

% Input: 
% (1) fname: file name
% (2) bsi, v, v_pd, v_pi, v_nd, v_ni, in_Ghat, g_hat: all outputs to be
% saved for cost savings and g confidence interval calculation

% Output 

%%
s_now = s_now_batch;
save(fname,'bsi','v','v_pd','v_pi','v_nd','v_ni','in_Ghat','g_hat','scaled_ATT_bs','ATE_bs','W_bs_Ghat','s_now','bsperm','dt');
end